package com.linkhub.oms.common.enums.mp;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: OrderStatusEnum
 * @Author: echo
 * @Date: 2024/3/28 17:08
 * @Version: 1.0
 */
@Getter
@AllArgsConstructor
public enum OrderStatusEnum implements IEnumConvert<Integer> {

    // 订单状态：1-未付款;2-已付款;3-部分退款;4-已退款;5-已取消；20-shipo审核中；21-待打包；22-已出库；30-已驳回;40-已发货;41-已签收；
    UNPAID(1, "未付款"),
    PAID(2, "已付款"),
    PARTIAL_REFUND(3, "部分退款"),
    REFUNDED(4, "已退款"),
    CANCELLED(5, "已取消"),
    SHIPO_AUDIT(20, "shipo审核中"),
    TO_BE_PACKED(21, "待打包"),
    OUT_OF_STORAGE(22, "已出库"),
    REJECTED(30, "已驳回"),
    DELIVERED(40, "已发货"),
    HAVE_BEEN_SIGNED(41, "已签收"),
    ;

    @EnumValue
    private final Integer code;
    private final String desc;
}
